package io.kiki.sba.registry.server.clientInterface.acceptor;

import io.kiki.sba.registry.common.model.ClientOffPublishers;
import io.kiki.sba.registry.common.model.ClientToClientInterfaceServerNodeId;
import io.kiki.sba.registry.common.model.store.Publisher;

import java.util.List;


public final class ClientOffWriteDataRequest implements WriteDataRequest<ClientOffPublishers> {
    private final ClientToClientInterfaceServerNodeId clientToClientInterfaceServerNodeId;

    private final ClientOffPublishers clientOffPublishers;

    public ClientOffWriteDataRequest(ClientToClientInterfaceServerNodeId clientToClientInterfaceServerNodeId, List<Publisher> publisherList) {
        this.clientToClientInterfaceServerNodeId = clientToClientInterfaceServerNodeId;
        this.clientOffPublishers = new ClientOffPublishers(clientToClientInterfaceServerNodeId, publisherList);
    }

    @Override
    public ClientOffPublishers getClientOffPublishers() {
        return clientOffPublishers;
    }

    @Override
    public WriteDataRequestType getWriteDataRequestType() {
        return WriteDataRequestType.client_off;
    }

    @Override
    public ClientToClientInterfaceServerNodeId getClientToClientInterfaceServerNodeId() {
        return clientToClientInterfaceServerNodeId;
    }
}
